<?php

	$act		= "act_edt";
	$idp		= isset($datpil->id)?$datpil->id:'';
	$no_agenda	= isset($datpil->no_agenda)?$datpil->no_agenda:'';
	$kode		= isset($datpil->kode)?$datpil->kode:'';
	$dari		= isset($datpil->tujuan)?$datpil->tujuan:'';
	$no_surat	= isset($datpil->no_surat)?$datpil->no_surat:'';
	$tgl_surat	= isset($datpil->tgl_surat)?$datpil->tgl_surat:'';
	$uraian		= isset($datpil->isi_ringkas)?$datpil->isi_ringkas:'';
	$ket		= isset($datpil->keterangan)?$datpil->keterangan:'';
	$gen_log_surat		= isset($datpil->gen_log_surat)?$datpil->gen_log_surat:'';
	$id_log		= isset($datpil->id_log)?$datpil->id_log:'';

?>
<div class="navbar navbar-inverse">
	<div class="container" style="z-index: 0">
		<div class="navbar-header">
			<span class="navbar-brand" href="#">Surat Keluar</span>
		</div>
	</div><!-- /.container -->
</div><!-- /.navbar -->

	<form action="<?=base_URL()?>surat_keluar/proses_perbaiki" method="post" accept-charset="utf-8">

	<input type="hidden" name="idp" value="<?php echo $idp; ?>">
	<input type="hidden" name="gen_log_surat" value="<?php echo $gen_log_surat; ?>">
	<input type="hidden" name="id_log" value="<?php echo $id_log; ?>">

	<div class="row-fluid well" style="overflow: hidden">

	<div class="col-lg-6">
		<table width="100%" class="table-form">
		<?php
			if ($this->session->userdata('admin_level')=='TU'){
				echo '<tr><td width="20%">No. Agenda</td><td><b><input type="text" name="no_agenda"  value="" style="width: 100px" class="form-control"></b></td></tr>';
			}
		?>
		<tr><td width="20%">Tujuan Surat</td><td><b><input type="text" name="dari" readonly="true"  value="<?php echo $dari; ?>" id="dari" style="width: 400px" class="form-control"></b></td></tr>
		<tr><td width="20%">Nomor Surat</td><td><b><input type="text" name="no_surat"  readonly="true"   value="<?php echo $no_surat; ?>" style="width: 300px" class="form-control"></td></tr>


		</table>
	</div>

	<div class="col-lg-6">
		<table width="100%" class="table-form">
			<tr><td width="20%">Kode Klasifikasi</td><td><b><input type="text" name="kode"  readonly="true"   value="<?php echo $kode; ?>" id="kode_surat" style="width: 100px" class="form-control"></b></td></tr>
			<tr><td width="20%">Tanggal Surat</td><td><b><input type="text" name="tgl_surat"  readonly="true"  value="<?php echo $tgl_surat; ?>" id="tgl_surat" style="width: 100px" class="form-control"></b></td></tr>
			<!-- <tr><td width="20%">File Surat (Scan)</td><td><b><input type="file" name="file_surat" class="form-control" style="width: 200px"></b></td></tr> -->
			<tr><td width="20%">Keterangan</td><td><b><input type="text" name="ket"  readonly="true"   value="<?php echo $ket; ?>" style="width: 400px" class="form-control"></b></td></tr>
		</table>
	</div>

	<table width="100%" class="table-form">
		<tr>
			<td>Isi Surat</td>
		</tr>
		<tr>
			<td><b><textarea name="uraian"  rows="30"  class="form-control"><?php echo $uraian; ?></textarea></b></td>
		</tr>
		<tr><td colspan="2">
		<br><button type="submit" class="btn btn-primary">Simpan</button>
		<a href="<?=base_URL()?>surat_keluar/surat_keluar" class="btn btn-success">Kembali</a>
		</td></tr>
	</table>


	</div>

	</form>